/**
 * 先实现加载前台 页面和后台页面，和登录post
 */

// pagescontroller没有涉及到数据库的调用，所以不用引入下一层的model

// 后台管理页面
exports.getAdminIndexPage = (req, res) => {
  res.render("admin/index.ejs");
};
exports.getAdminCategoriesPage = (req, res) => {
  res.render("admin/categories.ejs");
};
exports.getAdminCommentsPage = (req, res) => {
  res.render("admin/comments.ejs");
};
exports.getAdminLoginPage = (req, res) => {
  res.render("admin/login.ejs");
};
exports.getAdminNavMenusPage = (req, res) => {
  res.render("admin/nav-menus.ejs");
};
exports.getAdminPasswordResetPage = (req, res) => {
  res.render("admin/password-reset.ejs");
};
exports.getAdminPostAddPage = (req, res) => {
  res.render("admin/post-add.ejs");
};
exports.getAdminPostsPage = (req, res) => {
  res.render("admin/posts.ejs");
};
exports.getAdminProfilePage = (req, res) => {
  res.render("admin/profile.ejs");
};
exports.getAdminSettingsPage = (req, res) => {
  res.render("admin/settings.ejs");
};
exports.getAdminSlidesPage = (req, res) => {
  res.render("admin/slides.ejs");
};
exports.getAdminUsersPage = (req, res) => {
  res.render("admin/users.ejs");
};

// 前台页面
exports.getIndexPage = (req, res) => {
  res.render("index.ejs");
};
exports.getDetailPage = (req, res) => {
  res.render("detail.ejs");
};
exports.getListPage = (req, res) => {
  res.render("list.ejs");
};
